package com.runfast.waimai.dao.model;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Data
public class BasePurview implements Serializable {
    /**新增*/
    public interface GroupA {
    }
    /**修改*/
    public interface GroupB {
    }
    /**id*/
    @NotNull(message = "权限id不能为空！",groups = {GroupB.class})
    private Integer pid;
    /**上级id*/
    @NotNull(message = "父级权限id不能为空！",groups = {GroupB.class})
    private Integer byid;

    private Date createtime;

    private String link;
    /**权限名字*/
    @NotNull(message = "权限名字不能为空！",groups = {GroupA.class,GroupB.class})
    private String pname;
    /***/
    private Integer ptype;

    private Integer sort;

    private String target;

    private Integer showtype;

    private String info;

    /*** 前端显示图标*/
    private String icon;

    /*** 前端显示颜色*/
    private String color;

    private List<?> list;

    /*** 父菜单名称*/
    private String parentName;

    private List<BasePurview> subList=new ArrayList<BasePurview>() ;

    private static final long serialVersionUID = 1L;
}